import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [

  {
    path: '/',
    name: 'Home',

    component: () => import(/* webpackChunkName: "about" */ '../views/Show/index.vue'),
    children: [{
      path: '/index',
      name: 'Index',

      component: () => import(/* webpackChunkName: "about" */ '../views/Channel/Allchannel.vue'),

    },

    {
      path: '/detal:q',
      name: 'Detal',
      component: () => import(/* webpackChunkName: "about" */ '../views/Channel/Detal.vue'),
    },
    {
      path: '/video:id',
      name: 'Video',
      component: () => import(/* webpackChunkName: "about" */ '../views/video/index.vue'),
    },
    {
      path: '/mine',
      name: 'Mine',
      component: () => import(/* webpackChunkName: "about" */ '../views/Mine/index.vue'),
    },
    ],

  },



]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
